package models

import "gorm.io/gorm"

type User struct {
	Account  string
	Name     string
	Password string
	gorm.Model
}

func (u *User) GetUserByAccount() error {
	return DB.Where("account = ?", u.Account).Limit(1).Find(&u).Error
}
